package com.ddm.pay;

import android.content.Context;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.View;

import com.ddm.pay.R;
import com.ddm.pay.databinding.DialogFragmentDdmCancelPayBinding;


/**
 * Created by Administrator on 2018/9/18.
 */

public class DDMCancelPayDialogFragment extends BaseDialogFragment<DialogFragmentDdmCancelPayBinding> {


    private GPH5PayShareListener gph5PayShareListener;

    @Override
    public void initView(Context context, View rootView, AttributeSet attrs) {
        mBinding.setView(this);
    }

    @Override
    public void initData(Context context) {
    }

    @Override
    public void initEvent(Context context) {

    }


    public int getLayoutRes() {
        return R.layout.dialog_fragment_ddm_cancel_pay;
    }


    @Override
    public int getGravity() {
        return Gravity.CENTER;
    }


    //抢购
    public void onSure() {
        dismiss();
        gph5PayShareListener.onPurchaseCancel();
    }

    public void setGPH5PayShareListener(GPH5PayShareListener gph5PayShareListener) {
        this.gph5PayShareListener = gph5PayShareListener;
    }
}
